Skip to content

Conversation

@Satvik-Singh192
Copy link
Contributor

… pytest failing a lot

✨ Add tqdm-Based Progress Bars for Long-Running Operations

Closes #32

📝 Description

This PR introduces tqdm-based progress bars to improve user experience during long-running operations such as:

  • Synthetic data generation
  • Factor computation
  • Backtest execution

Previously, these steps ran silently, making it difficult for users to estimate how long a process would take. This PR resolves that by adding lightweight progress indicators without altering existing workflows.


✅ Changes Made

1. Synthetic Data Generation

  • Added a tqdm progress bar that displays generation progress for each symbol.

2. Factor Computation

  • Added tqdm progress bars for factor-wise averaging operations.

3. Backtest Execution

  • Wrapped the internal backtest loop with tqdm to visualize iteration progress.

4. Minimal & Non-Intrusive Changes

  • No refactoring or redesign of core functionality.
  • Only small patches added where needed to integrate progress bars cleanly.

[x] I have read the contributing guidelines

@ayushkrtiwari ayushkrtiwari requested a review from Copilot November 9, 2025 09:29
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR attempts to add progress bars using tqdm to various operations in the CLI, but introduces multiple critical bugs that break core functionality. The changes include adding tqdm import, modifying data generation to use a loop, attempting to add progress bars to factor computation, and monkey-patching the VectorizedBacktest.run method.

Key changes attempted:

  • Addition of tqdm progress bars to data generation, factor computation, and backtesting
  • Modified data generation to generate symbols one at a time instead of in batch
  • Monkey-patched VectorizedBacktest.run method to show progress during backtesting

Reviewed Changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated 6 comments.

File Description
src/quant_research_starter/cli.py Adds tqdm import and attempts to integrate progress bars throughout CLI commands, but introduces multiple bugs including broken monkey-patching, incorrect tqdm usage, and performance regressions
.gitignore Adds myenv/ to ignore virtual environment directory

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@ayushkrtiwari
Copy link
Collaborator

@Satvik-Singh192 please look into copilot's review and change wherever necessary

@ayushkrtiwari ayushkrtiwari added Semver:minor minor version changes PR:Accept To acknowledge the PR hacktoberfest-accepted Type:Hard senior developers, max points labels Nov 10, 2025
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 2 out of 3 changed files in this pull request and generated 4 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Satvik-Singh192 and others added 4 commits November 10, 2025 12:19
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
@ayushkrtiwari ayushkrtiwari merged commit c4f5137 into OPCODE-Open-Spring-Fest:main Nov 11, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hacktoberfest-accepted PR:Accept To acknowledge the PR Semver:minor minor version changes Type:Hard senior developers, max points

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: Progress bars for data downloads and backtests

2 participants